package org.ns.summer.classpath.classreader;

import org.ns.summer.classpath.classreader.basicinfo.MemberInfo;
import org.ns.summer.classpath.classreader.basicinfo.attribute.AttributeInfo;

/**
 *
 * @author 张星宇
 *
 * @email m.vip@qq.com
 *
 * class 结构体定义
 */
public class ClassFile {
    public long magic;
    public int minorVersion;
    public int majorVersion;
    public ConstantPool constantPool; // 常量池，储存类中的常量内容，通过index获取

    public int accessFlag;
    public String className;
    public String superClass;
    public int interfaceCount;
    public String[] interfaces;
    public int fieldCount;
    public MemberInfo[] fields;
    public int methodCount;
    public MemberInfo[] methods;
    
    public int attributeCount;
    public AttributeInfo[] attributes;
    
}
